/// id : 1000002
/// nickname : "人总要靠自己°"
/// avatar : "/creamchat/image/avatar-8bc7cfb8-a9ea-4ea7-b40e-d95c08d2c850.png"
/// gender : 2
/// motto : "困难坎坷是人们的生活教科书。"
/// constellation : "金牛座"
/// birthday : 957121294212
/// height : 150
/// emotionStatus : 0
/// voiceShow : ""
/// voiceCallPrice : 0
/// videoCallPrice : 0
/// lon : 120.95718
/// lat : 30.69415
/// currCity : "嘉兴市"
/// tags : "手机控|好好学习|靠脸吃饭"
/// job : "店主"
/// energyLevel : 0
/// charmLevel : 0
/// isAuth : 0
/// isOnline : 0
/// lastActive : 1620232934910
/// createdAt : 1619870812223

class UserBaseInfo {
  int _id;
  String _nickname;
  String _avatar;
  int _gender;
  String _motto;
  String _constellation;
  int _birthday;
  int _height;
  int _emotionStatus;
  String _voiceShow;
  int _voiceCallPrice;
  int _videoCallPrice;
  double _lon;
  double _lat;
  String _currCity;
  String _tags;
  String _job;
  int _energyLevel;
  int _charmLevel;
  int _isAuth;
  int _isOnline;
  int _lastActive;
  int _createdAt;

  int get id => _id;
  String get nickname => _nickname;
  String get avatar => _avatar;
  int get gender => _gender;
  String get motto => _motto;
  String get constellation => _constellation;
  int get birthday => _birthday;
  int get height => _height;
  int get emotionStatus => _emotionStatus;
  String get voiceShow => _voiceShow;
  int get voiceCallPrice => _voiceCallPrice;
  int get videoCallPrice => _videoCallPrice;
  double get lon => _lon;
  double get lat => _lat;
  String get currCity => _currCity;
  String get tags => _tags;
  String get job => _job;
  int get energyLevel => _energyLevel;
  int get charmLevel => _charmLevel;
  int get isAuth => _isAuth;
  int get isOnline => _isOnline;
  int get lastActive => _lastActive;
  int get createdAt => _createdAt;

  UserBaseInfo({
      int id, 
      String nickname, 
      String avatar, 
      int gender, 
      String motto, 
      String constellation, 
      int birthday, 
      int height, 
      int emotionStatus, 
      String voiceShow, 
      int voiceCallPrice, 
      int videoCallPrice, 
      double lon, 
      double lat, 
      String currCity, 
      String tags, 
      String job, 
      int energyLevel, 
      int charmLevel, 
      int isAuth, 
      int isOnline, 
      int lastActive, 
      int createdAt}){
    _id = id;
    _nickname = nickname;
    _avatar = avatar;
    _gender = gender;
    _motto = motto;
    _constellation = constellation;
    _birthday = birthday;
    _height = height;
    _emotionStatus = emotionStatus;
    _voiceShow = voiceShow;
    _voiceCallPrice = voiceCallPrice;
    _videoCallPrice = videoCallPrice;
    _lon = lon;
    _lat = lat;
    _currCity = currCity;
    _tags = tags;
    _job = job;
    _energyLevel = energyLevel;
    _charmLevel = charmLevel;
    _isAuth = isAuth;
    _isOnline = isOnline;
    _lastActive = lastActive;
    _createdAt = createdAt;
}

  UserBaseInfo.fromJson(dynamic json) {
    _id = json["id"];
    _nickname = json["nickname"];
    _avatar = json["avatar"];
    _gender = json["gender"];
    _motto = json["motto"];
    _constellation = json["constellation"];
    _birthday = json["birthday"];
    _height = json["height"];
    _emotionStatus = json["emotionStatus"];
    _voiceShow = json["voiceShow"];
    _voiceCallPrice = json["voiceCallPrice"];
    _videoCallPrice = json["videoCallPrice"];
    _lon = json["lon"];
    _lat = json["lat"];
    _currCity = json["currCity"];
    _tags = json["tags"];
    _job = json["job"];
    _energyLevel = json["energyLevel"];
    _charmLevel = json["charmLevel"];
    _isAuth = json["isAuth"];
    _isOnline = json["isOnline"];
    _lastActive = json["lastActive"];
    _createdAt = json["createdAt"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["id"] = _id;
    map["nickname"] = _nickname;
    map["avatar"] = _avatar;
    map["gender"] = _gender;
    map["motto"] = _motto;
    map["constellation"] = _constellation;
    map["birthday"] = _birthday;
    map["height"] = _height;
    map["emotionStatus"] = _emotionStatus;
    map["voiceShow"] = _voiceShow;
    map["voiceCallPrice"] = _voiceCallPrice;
    map["videoCallPrice"] = _videoCallPrice;
    map["lon"] = _lon;
    map["lat"] = _lat;
    map["currCity"] = _currCity;
    map["tags"] = _tags;
    map["job"] = _job;
    map["energyLevel"] = _energyLevel;
    map["charmLevel"] = _charmLevel;
    map["isAuth"] = _isAuth;
    map["isOnline"] = _isOnline;
    map["lastActive"] = _lastActive;
    map["createdAt"] = _createdAt;
    return map;
  }

}